package com.ruoyi.house.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.house.mapper.WebmagicAgencyDataMapper;
import com.ruoyi.house.domain.WebmagicAgencyData;
import com.ruoyi.house.service.IWebmagicAgencyDataService;
import com.ruoyi.common.core.text.Convert;

/**
 * 房产签约Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-06-09
 */
@Service
public class WebmagicAgencyDataServiceImpl implements IWebmagicAgencyDataService 
{
    @Autowired
    private WebmagicAgencyDataMapper webmagicAgencyDataMapper;

    /**
     * 查询房产签约
     * 
     * @param id 房产签约主键
     * @return 房产签约
     */
    @Override
    public WebmagicAgencyData selectWebmagicAgencyDataById(Long id)
    {
        return webmagicAgencyDataMapper.selectWebmagicAgencyDataById(id);
    }

    /**
     * 查询房产签约列表
     * 
     * @param webmagicAgencyData 房产签约
     * @return 房产签约
     */
    @Override
    public List<WebmagicAgencyData> selectWebmagicAgencyDataList(WebmagicAgencyData webmagicAgencyData)
    {
        return webmagicAgencyDataMapper.selectWebmagicAgencyDataList(webmagicAgencyData);
    }

    /**
     * 新增房产签约
     * 
     * @param webmagicAgencyData 房产签约
     * @return 结果
     */
    @Override
    public int insertWebmagicAgencyData(WebmagicAgencyData webmagicAgencyData)
    {
        return webmagicAgencyDataMapper.insertWebmagicAgencyData(webmagicAgencyData);
    }

    /**
     * 修改房产签约
     * 
     * @param webmagicAgencyData 房产签约
     * @return 结果
     */
    @Override
    public int updateWebmagicAgencyData(WebmagicAgencyData webmagicAgencyData)
    {
        return webmagicAgencyDataMapper.updateWebmagicAgencyData(webmagicAgencyData);
    }

    /**
     * 批量删除房产签约
     * 
     * @param ids 需要删除的房产签约主键
     * @return 结果
     */
    @Override
    public int deleteWebmagicAgencyDataByIds(String ids)
    {
        return webmagicAgencyDataMapper.deleteWebmagicAgencyDataByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除房产签约信息
     * 
     * @param id 房产签约主键
     * @return 结果
     */
    @Override
    public int deleteWebmagicAgencyDataById(Long id)
    {
        return webmagicAgencyDataMapper.deleteWebmagicAgencyDataById(id);
    }
}
